/*
 * copyright (c) 2009 Alexandr [Sn@ble] Surnin
 *
 * This file is part of FrameSeeker.
 *
 * FrameSeeker is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FrameSeeker is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You can read the full version of GNU LGPL in
 * http://www.gnu.org/copyleft/lesser.html
 */


#ifndef FSCONFIGURATOR_H
#define FSCONFIGURATOR_H

#include <QtGui/QWidget>
#include <QtGui/QSpinBox>
#include <QSettings>

namespace Ui
{
    class FSConfigurator;
}

class FSConfigurator : public QWidget
{
    Q_OBJECT

public:
    FSConfigurator(QWidget *parent = 0);
    ~FSConfigurator();

public slots:

    void saveSettings();
    void loadSettings();

private:
    Ui::FSConfigurator *ui;
    QSpinBox *sbLow;
    QSpinBox *sbHigh;
    QSettings *settings;


private slots:
    void on_sbHighThres_valueChanged(int );
    void on_sbLowThres_valueChanged(int );
    void on_pbCancel_clicked();
    void on_pbSave_clicked();
    void on_pbExit_clicked();
};

#endif // FSCONFIGURATOR_H
